<template>
  <view :style="themeColor">
    <view class="page">
      <fu-custom bgColor="bg-white" :isBack="true" :isBottom="true">
        <block slot="content">详情</block>
      </fu-custom>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout fabuxiangqing_flex_1">
        <view class='flex flex-wrap align-center'>
          <image class='fabuxiangqing_fd1_0_c0' mode="aspectFit" :src='info.user_avatar'></image>
          <view class='flex flex-direction flex-wrap align-stretch fabuxiangqing_fd1_0_c1'>
            <text class='fabuxiangqing_fd1_0_c1_c0'>{{info.user_nickname}}</text>
            <text class='fabuxiangqing_fd1_0_c1_c1'>{{info.create_time}}</text>
          </view>
        </view>
        <view class='fabuxiangqing_fd1_1'>
          <text class='fabuxiangqing_fd1_1_c0'>{{info.type_name}}</text>
          <text class='fabuxiangqing_fd1_1_c1'>{{info.content}}</text>
        </view>
        <view class='flex flex-wrap align-center fabuxiangqing_fd1_2'>
          <view class='flex flex-wrap align-center fabuxiangqing_fd1_2_c0'>
            <image class='fabuxiangqing_fd1_2_c0_c0' mode="aspectFill" lazy-load :src='info.images'></image>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "info": {
          "type": "",
          "user_nickname": "",
          "user_avatar": "",
          "content": "",
          "images": "",
          "status": "",
          "aid": "",
          "create_time": "",
          "user_id": "",
          "type_name": "",
          "user_id_name": ""
        },
        "id": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        id
      } = options
      if (id !== undefined) this.id = id
      this.getce656fed32dc189Func()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //烦恼详情
      async getce656fed32dc189Func() {
        //请求方法
        //数据验证

        let datainfo = await this.$api.post(global.apiUrls.post656fed32dc189, {
          trouble_id: this.id
        });

        if (datainfo.data.code != 1) {
          this.$message.info(datainfo.data.msg);
          return
        }
        let infoinfo = datainfo.data;
        this.info = infoinfo.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: var(--benbenbgColor1);
    background-size: 100% auto;
  }

  .fabuxiangqing_flex_0 {
    border-bottom: 1px solid #eee;
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .fabuxiangqing_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333333;
    line-height: 88rpx;
  }

  .fabuxiangqing_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .fabuxiangqing_fd0_0_c0 {
    width: 120rpx;
  }

  .fabuxiangqing_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .fabuxiangqing_flex_1 {
    padding: 28rpx 32rpx 0rpx 32rpx;
  }

  .fabuxiangqing_fd1_2_c0_c0 {
    width: 164rpx;
    height: 164rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
  }

  .fabuxiangqing_fd1_2_c0 {
    width: 164rpx;
    height: 164rpx;
    margin: 16rpx 8rpx 0rpx 0rpx;
  }

  .fabuxiangqing_fd1_2 {
    margin: 0rpx -10rpx 0rpx 0rpx;
  }

  .fabuxiangqing_fd1_1_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 42rpx;
    margin: 0rpx 0rpx 0rpx 16rpx;
  }

  .fabuxiangqing_fd1_1_c0 {
    background: rgba(226, 244, 247, 1);
    background-size: 100% auto;
    color: rgba(107, 198, 186, 1);
    font-size: 24rpx;
    padding: 5rpx 8rpx 5rpx 8rpx;
    border-radius: 8rpx;
  }

  .fabuxiangqing_fd1_1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .fabuxiangqing_fd1_0_c1_c1 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 500;
    margin: 12rpx 0rpx 0rpx 0rpx;
  }

  .fabuxiangqing_fd1_0_c1_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 700;
  }

  .fabuxiangqing_fd1_0_c1 {
    margin: 0rpx 0rpx 0rpx 24rpx;
  }

  .fabuxiangqing_fd1_0_c0 {
    width: 88rpx;
    height: 88rpx;
    border-radius: 100rpx;
  }
</style>